package com.example.design.proxy.statical.sailtowel;

/**
 * @Description 卖毛巾的代理类,代理（Proxy）类
 * @ClassName TowelSaleProxy
 * @Author Yumuhui
 * @Date 2020/5/13 23:56
 * @Version 1.0.0
 */
public class TowelSaleProxy implements SailTowel {
    private TowelProduce towelProduce;

    public TowelSaleProxy(String consumerName) {
        this.towelProduce = new TowelProduce(consumerName);
    }

    @Override
    public void sailTowel() {
        towelProduce.sailTowel();
    }
}
